package com.sun.dto;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/3/17 11:53
 * @FileName: excelStateDataVo
 * @Description: ""
 */
@Component
@Data
public class ExcelStateDataVo {


    //成功条目
    private Integer successCount = 0;

    //失败条目
    private Integer errorCount = 0;

    //错误信息
    private List<String> errList;

    //是否是空文件,本来名称是使用isNullFile的
    //但是发现is会被优化掉，不建议boolean类型使用isxxx
    private boolean nullFile;

    public void setErrList(List<String> errList) {
        this.errList = errList;
        this.errorCount = errList.size();
    }
}
